<?php
namespace app\manage\validate;

use think\Validate;

/**
 * 行为验证器
 * @package app\menus\validate
 * @author 
 */
class Icon extends Validate
{
    //定义验证规则
    protected $rule = [
        'name|品牌名称'  => 'require',
        'status|状态'   => 'require',
    ];

    //定义验证提示
    protected $message = [
         'name.require' => '请输入图标名称',
         'status.require' => '请选择状态',
        
    ];

    //定义验证场景
    protected $scene = [
        //更新
        'add'  =>  ['name','status'],
    ];
}
